<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<f:loadBundle basename="com.es.resource.messages" var="bundle" />
<html>
	<head>
		<base href="<%=basePath%>">

		<title>salesAgentDashboard</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	</head>
	<body>
		<f:view>
		
			<h:inputHidden value="#{leadController.tempVarDL}" />

			<a4j:form style="align: center;">

				<h:commandLink id="logoutCl" value="Log Out"
					action="#{authenticationController.logout}">
				</h:commandLink>

				<rich:spacer width="11"></rich:spacer>

				<h:commandLink id="dashboardCl" value="Back to Dashboard"
					action="#{leadController.navigateToSalesAgentDashboard}"
					immediate="true">
				</h:commandLink>

			</a4j:form>

			<rich:panel header="Delete Dead Lead(s)" style="width: 501px">

				<h:form>
					<br />

					<h:selectManyCheckbox id="deadLeads" layout="pageDirection"
						style='font-family: Georgia, "Times New Roman", Serif; font-size: 11px; color:SteelBlue'
						value="#{leadController.selectedDeadLeads}">
						<f:selectItems value="#{leadController.deadLeadSelectItems}" />
					</h:selectManyCheckbox>

					<br />
					<br />

					<h:commandButton action="#{leadController.deleteDeadLeads}"
						value="Delete">
					</h:commandButton>


					<br />
					<br />

					<h:messages showSummary="true"></h:messages>

				</h:form>
			</rich:panel>





		</f:view>
	</body>
</html>